package com.kantboot.business.talent.service.impl;

import com.kantboot.business.talent.domain.entity.BusTalentTitleLevel;
import com.kantboot.business.talent.domain.vo.BusTalentTitleLevelHasCondition;
import com.kantboot.business.talent.repository.BusTalentTitleLevelHasConditionRepository;
import com.kantboot.business.talent.repository.BusTalentTitleLevelRepository;
import com.kantboot.business.talent.service.IBusTalentTitleLevelService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusTalentTitleLevelServiceImpl implements IBusTalentTitleLevelService {

    @Resource
    private BusTalentTitleLevelRepository repository;

    @Resource
    private BusTalentTitleLevelHasConditionRepository hasConditionRepository;

    @Override
    public List<BusTalentTitleLevel> getAll() {
        return repository.findAll();
    }

    @Override
    public List<BusTalentTitleLevelHasCondition> getAllHasCondition() {
        return hasConditionRepository.findAll();
    }

}
